#!/usr/bin/env python
#coding:utf-8
#autor:Qiweiwei
import requests
import json
post = {"dlcQuerys": [{"taskIds": ["012_001","012_002"],"dlcName": "DLC12","simulationId": "gw121p20t85ksbsw59.5v10_test_2017042001","variables": [{"offset": "1","variable": "B1GLFX"},{"offset": "1","variable": "B2GLFX"},{"offset": "1","variable": "B3GLFX"}]}]}
headers = {'content-type': 'application/json'}
url = 'http://54.223.144.22:9123/simulation/extremedlcs'
p = requests.post(url, data=json.dumps(post), headers=headers)
res = p.text
if res != '':
    print "You Get The Json return"
else:
    print 'AWS is down'

